<form class="layui-form" action="">


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">登录账号:</label>
            <div class="layui-input-inline">
                <input type="text" id="infoLoginName" autocomplete="off" class="layui-input" disabled="disabled">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">真实姓名:</label>
            <div class="layui-input-inline">
                <input type="text" id="infoUserName" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>


</form>

<script type="text/javascript">
    $(function () {
        $.ajax({
            type:'get',
            url:'user/queryOneById?id='+$('#puId').val(),
            success:function (res) {
                let data = res.data;
                document.getElementById("infoLoginName").value= data.loginName;
                document.getElementById("infoUserName").value= data.userName;
            }
        })
    });
</script>